import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        //cpu 密集型程序
        Thread t1 = new Thread(()->{
           int count = 0;
           while (true){
               count++;
           }
        });

        //IO 密集型程序
        Thread t2 = new Thread(()->{
            Scanner scanner = new Scanner(System.in);
            int value = scanner.nextInt();
            System.out.println("value = "+value);
        });
        t1.start();
        t2.start();
    }
}
